<?php

namespace App\Repositories;

use App\Exceptions\BasicException;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Redis;

class ConfigRepository
{

    const configRedisKey = "DB_CONFIG_DATA";

    /**
     * 查询配置数据
     *
     * @param $config_name
     *
     * @return bool
     */
    public function queryConfig($config_name)
    {
        $queryConfig = app('model_config')->where(['key' => $config_name])->first();

        return $queryConfig;
    }

}